﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapEditor
{
    class Node
    {
        int _id;
        Node _lt, _lb, _rt, _rb;
        int _x1, _y1, _x2, _y2;
        List<TreeObject> _list = new List<TreeObject>();

        public Node(int x1, int y1, int x2, int y2)
        {
            this._x1 = x1;
            this._y1 = y1;
            this._x2 = x2;
            this._y2 = y2;
        }

        public int id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int x1
        {
            get { return _x1; }
            set { _x1 = value; }
        }

        public int x2
        {
            get { return _x2; }
            set { _x2 = value; }
        }

        public int y1
        {
            get { return _y1; }
            set { _y1 = value; }
        }

        public int y2
        {
            get { return _y2; }
            set { _y2 = value; }
        }

        public Node lt
        {
            get { return _lt; }
            set { _lt = value; }
        }

        public Node lb
        {
            get { return _lb; }
            set { _lb = value; }
        }

        public Node rt
        {
            get { return _rt; }
            set { _rt = value; }
        }

        public Node rb
        {
            get { return _rb; }
            set { _rb = value; }
        }

        public List<TreeObject> list
        {
            get { return _list; }
            set { _list = value; }
        }
    }
}
